<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="keywords" content="有思想,讨论,智慧,全球第二好">

    <title>智慧公社 有思想的人都在这儿</title>
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.css" rel="stylesheet"  />
    <link rel="stylesheet" href="__PUBLIC__/css/index.css">
    <link href="__PUBLIC__/css/font-awesome.css"  rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/css/iosOverlay.css"  rel="stylesheet" type="text/css">
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/jquery.snippet.min.js"></script>
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/js/jquery.pin.min.js"></script>
    <script src="__PUBLIC__/js/headroom.js"></script>
    <script src="__PUBLIC__/js/index.js"></script>
    <script src="__PUBLIC__/js/sco.ajax.js"></script>
    <script src="__PUBLIC__/js/sco.modal.js"></script>
    <script src="__PUBLIC__/js/bootstrap-select.js"></script>

    <script src="__PUBLIC__/js/jquery.snippet.min.js"></script>
    <script src="__PUBLIC__/js/iosOverlay.js"></script>
    <script src="__PUBLIC__/js/spin.min.js"></script>
        <script>
        var url="{:U('Index/addArticle')}";
		var urlDown="{:U('Index/daoAcrticle')}";
		var fileUrl="{:U('Index/attention')}"
		var heartUrl="{:U('Index/heart')}";
	    var urlOrder="{:U('Index/discussOrder')}";
		var urlImages="__PUBLIC__/images/";
    </script>
    <!--<style>
     *{border: 1px solid rgb(250,0,255);}
    </style>-->
    <style>
    .card-body img{ width:100% !important;}
</style>
</head>
<body style="background-color:#f8f8f8" background="__PUBLIC__/images/bghw.png">

    <!-- 头部导航开始 -->
 <include file="Index/title" />
  
    <!-- 主体信息开始 -->
    <div id='contents' class="container">
         <div class="hall-toptext"> 思想的碰撞产生智慧的火花 ——智慧公社 </div>
         <div class="hall-toptext" style="font-size:14px">The spark of wisdom comes from the collision of thoughts —Stuccess</div>
         <foreach name="tagName" item="tagVo"> 
                <span class="btn">{$tagVo}</span>
         </foreach>
        <div>
        <!--<div class="hall-tag"><a href="javascript:void()" data-toggle="modal" data-target="#myModal">添加你喜欢的标签</a>，淘到你需要的智慧</div>-->

        <!-- Modal -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">热门Tag：</h4>
                    </div>
                   <form action="" method="post" name="myform">
                    <div class="modal-body">
              
                     <foreach name="tag" item="tagTitle">
                        <div class="col-xs-4">
                            <select multiple="multiple" title="{$tagTitle['tag_content']}" name="tag[]">
                            <foreach name="tagTitle['cate']" item="tagCont">
                                <option value="{$tagCont['tag_id']}">{$tagCont['tag_content']}</option>
                             </foreach>
                            </select>
                        </div>
                    </foreach>
                    </div>
                    <div style="float:right; margin-right:50px;">
                    <button type="button" class="btn " data-dismiss="modal">取消</button>
                        <input type="submit" class="btn btn-success " value="确认"/>
                      </div>
                    </form>
                    <div class="modal-footer" style="border:0;">
                        
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
        
         <div id="myCarousel" class="carousel slide"> <!--轮播 -->
        <ol class="carousel-indicators"> 
          <li data-target="#myCarousel" data-slide-to="0" class="active"></li> 
          <li data-target="#myCarousel" data-slide-to="1"></li> 
          <li data-target="#myCarousel" data-slide-to="2"></li>
          <li data-target="#myCarousel" data-slide-to="3"></li> 
        </ol> 
      <div class="carousel-inner" title="用思想的力量改变世界"> 
                <div class="item active"> 
                    <a href="http://v.163.com/movie/2006/8/3/8/M7BC8JMHJ_M7BC8PA38.html" target="_blank"> <img src="__PUBLIC__/images/lb1.png" alt=""> </a>
                    <div class="carousel-caption"> 
                      <h4> </h4> 
                      <p> </p> 
                    </div> 
                </div> 
                <div class="item"> 
                    <a href="http://www.56.com/u52/v_MTExNjg3MzUz.html" target="_blank"> <img src="__PUBLIC__/images/lb2.png" alt=""> </a>
                        <div class="carousel-caption"> 
                           <h4> </h4> 
                           <p> </p> 
                        </div> 
                </div> 
                <div class="item"> 
                    <a href="http://www.56.com/u46/v_MTExNjk3OTk1.html" target="_blank"> <img src="__PUBLIC__/images/lb3.png" alt=""> </a>
                        <div class="carousel-caption"> 
                          <h4> </h4> 
                          <p> </p> 
                        </div> 
                </div> 
                <div class="item"> 
                    <a href="http://www.56.com/u13/v_ODk0NjUzNzg.html" target="_blank"> <img src="__PUBLIC__/images/lb4.png" alt=""> </a>
                        <div class="carousel-caption"> 
                          <h4> </h4> 
                          <p> </p> 
                        </div> 
                </div> 
               
     </div> 
        
        
    </div> 
    <script>     
    $('.carousel').carousel() 
    </script> 
    
    <ul class="nav nav-tabs" id="hallTab"><!--切换类别 -->
      	<li class="active"><a href="#all">所有讨论</a></li>
 		<li><a href="#interest">兴趣领域</a></li>
 	 	<li><a href="#goodAt">擅长领域</a></li>
 	 	<li><a href="#custom">自定义</a></li>
	</ul>
    <div class="tab-content" id="tabContent">
    <div class="tab-pane fade" id="custom">
    	
	    <div class="row" style="margin-top: 30px;">
		    <div class="tags">
				<span style="font-size:23px">你可以选择感兴趣的专业，筛选出相关讨论：</span>
				<span class="setup-tag" >
				<span id="fav"> 
	     			<span></span> 
				</span>

				<a data-trigger="modal" data-title="请选择感兴趣的专业" href="filter.html">
					<span  style="margin-left:-45px; margin-bottom:100px;" class="fa fa-check-square-o fa-2x"></span>
				</a> 
				</span>
				<br>
				<br>
			</div>
			<div class="col-xs-6 leftCont" id="panel-left"></div>
			<div class="col-xs-6 rightCont" id="panel-right"></div>
		</div>
		<!-- 主体信息结束 -->
		<div class="cursor fildLoad" style="background-color: #f1f2f3; color: #99A9B4; margin:auto; line-height:30px; text-align:center;" value="0">点击加载更多</div>
    </div>    
    <div class="tab-pane fade" id="goodAt">
	    <div class="row" style="margin-top: 30px;">
			<div class="col-xs-6 leftCont" id="panel-left"></div>
			<div class="col-xs-6 rightCont" id="panel-right"></div>
		</div>
		<!-- 主体信息结束 -->
		<div class="cursor fildLoad" style="background-color: #f1f2f3; color: #99A9B4; margin:auto; line-height:30px; text-align:center;" value="0">点击加载更多</div>
    </div>
    
    <div class="tab-pane fade" id="interest">
    	<div class="row" style="margin-top: 30px;">
			<div class="col-xs-6 leftCont" id="panel-left"></div>
			<div class="col-xs-6 rightCont" id="panel-right"></div>
		</div>
		<!-- 主体信息结束 -->
		<div class="cursor fildLoad" style="background-color: #f1f2f3; color: #99A9B4; margin:auto; line-height:30px; text-align:center;" value="0">点击加载更多</div>
    </div>
    
    <div class="tab-pane fade active in" id="all">
    <div class="row" style="margin-top:30px;">
        <div class="col-xs-6 leftCont" id="panel-left" >
            <volist name="list" id="vo" mod="2">
           <eq name="mod"  value="0" >
                <div class="card panel panel-default">
            
                    <div class="panel-body">
                
                        <div class="card-head">
                            <div class="card-head-left"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}"><img src="{$vo['user_img']}" width="45" class="img-circle" /></a></div>
                            <div class="card-head-center"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}">{$vo['user_name']}</a><small>@{$vo['article_time']|date='Y-m-d H:i',###}</small></div>
                            <if condition="($vo['article_type'] eq 2) or ($vo['article_type'] eq 3)">
                            <div class="card-head-right">
							<span class="fa fa-eye"  title="浏览量"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                         <if condition="$vo['is_order'] eq 1">
                            <span class="fa fa-rss marking"  title="订阅数"> {$vo['article_order']}</span>
                         <else/>
                            <span class="order cursor " value="{$vo['article_id']}"><span class="fa fa-rss "  title="订阅数"> {$vo['article_order']}</span></span>
                         </if>
                            
                            </div>
                         <else/>
                              <div class="card-head-right">
                              <span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                                <if condition="$vo['article_father_id'] eq 0"> 
                                  <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              <i value="{$vo['article_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  <else/>
                                 <i value="{$vo['article_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  </if>
                                <else/>
                                 <if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
                              <i value="{$vo['article_father_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  <else/>
                                  <i value="{$vo['article_father_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
                                  </if>
                                </if>
                                </div>
                         </if>
                            <div class="clearfix"></div>
                        </div>
                        <div class="card-body">
                       <switch name="vo['article_type']">
                           <case value="1"> <div class="title discuss articleTitle"><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}" target="_blank">{$vo['article_title']}</a></span></span></div>
                          <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                           </case>
                           <case value="2"> <div class="title discuss articleTitle">发起 <span>讨论</span><span class="titleCont"><a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                          <div class="articleCont">
                          <a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                           </case>
                            <case value="3"> <div class="title discuss articleTitle">参与 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="4"> <div class="title discuss articleTitle">赞同 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="5"> <div class="title discuss articleTitle">批阅 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                            </case>
                             <case value="6"> <div class="title discuss articleTitle">订阅 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                             </case>
                            
                            </switch>

                        </div>
                        <div class=""></div>
                    </div>

                </div>
                </eq>
                </volist>
        </div>
        <div class="col-xs-6 rightCont" id="panel-right">
            <volist name="list" id="vo" mod="2">
           <eq name="mod"  value="1" >
                <div class="card panel panel-default">
            
                    <div class="panel-body">
                
                        <div class="card-head">
                            <div class="card-head-left"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}" target="_blank"><img src="{$vo['user_img']}" width="45" class="img-circle" /></a></div>
                            <div class="card-head-center"><a href="{:U('Index/hispage',array('hispage'=>$vo['user_id']))}" target="_blank">{$vo['user_name']}</a><small>@{$vo['article_time']|date='Y-m-d H:i',###}</small></div>
                            <if condition="($vo['article_type'] eq 2) or ($vo['article_type'] eq 3)">
                            <div class="card-head-right">
                            
							<span class="fa fa-eye"  title="浏览量"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
                            <if condition="$vo['is_order'] eq 1">
                            <span class="fa fa-rss marking"  title="订阅数"> {$vo['article_order']}</span>
                            <else/>
                            <span class="order cursor " value="{$vo['article_id']}"><span class="fa fa-rss "  title="订阅数"> {$vo['article_order']}</span></span>
                            </if>
                            
                            </div>
                         <else/>
							<div class="card-head-right">
							<span class="fa fa-eye"> {$vo['article_num']}</span>&nbsp;&nbsp;&nbsp;
							<if condition="$vo['article_father_id'] eq 0"> 
								<if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
									<i value="{$vo['article_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
								<else/>
									<i value="{$vo['article_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
								</if>
							<else/>
							<if condition="($vo['article_zan_id'] eq 1) or ($vo['article_dao_id'] eq 1)">
								<i value="{$vo['article_father_id']}" class="fa fa-thumbs-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
							<else/>
								<i value="{$vo['article_father_id']}" class="fa fa-thumbs-o-up good   cursor">{$vo['article_zan']}</i>&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-thumbs-o-down   cursor" value="{$vo['article_id']}">{$vo['article_dao']}</i>
							</if>
						</if>
                         </div>
                         </if>
                            <div class="clearfix"></div>
                        </div>
                        <div class="card-body">
                        <switch name="vo['article_type']">
                           <case value="1"> <div class="title discuss articleTitle"><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}" target="_blank">{$vo['article_title']}</a></span></span></div>
                          <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['article_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                           </case>
                           <case value="2"> <div class="title discuss articleTitle">发起 <span>讨论</span><span class="titleCont"><a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                          <div class="articleCont">
                          <a href="{:U('Index/discuss',array('aId'=>$vo['article_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                           </case>
                            <case value="3"> <div class="title discuss articleTitle">参与 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="4"> <div class="title discuss articleTitle">赞同 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                          <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                            </case>
                            <case value="5"> <div class="title discuss articleTitle">批阅 <span class="rss">文章 </span><span class="titleCont"><a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a  href="{:U('Index/article',array('aid'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                            </case>
                             <case value="6"> <div class="title discuss articleTitle">订阅 <span>讨论</span><span class="titleCont"><a  href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_title']}</a></span></div>
                           <div class="articleCont">
                           <a href="{:U('Index/discuss',array('aId'=>$vo['father_id']))}" target="_blank">{$vo['article_content']}</a>
                          </div>
                             </case>
                            
                            </switch>

                        </div>
                        <div class=""></div>
                    </div>

                </div>
                </eq>
                </volist>
    </div>
   
    </div> <!-- 主体信息结束 -->
<div  style="background-color: #f1f2f3; color: #99A9B4; margin:auto; line-height:30px; text-align:center;" class="cursor fildLoad" value="{$max_id}" >点击加载更多</div>
    
    </div>
    </div>
    
    <include file="Index/copyright" />
    <footer>
    
    </footer>
   
        <script type="text/javascript">
        //登陆去掉自定义
		if($('.sl').attr('value'))
			$('a[href="#custom"]').parent().addClass('hidden');
		else
		{
			$('a[href="#interest"]').parent().addClass('hidden');
			$('a[href="#goodAt"]').parent().addClass('hidden');
		}
        //未登陆只显示自定义
        
        jQuery(function ($) {
        	$('#hallTab a').click(function (e) {
				e.preventDefault()
				if($('.sl').attr('value') || $(e.target).attr("href") == "#custom" || $(e.target).attr("href") == "#all")
					$(e.target).tab('show');
				setTimeout(function(){
					if($('.tab-content .active .row .leftCont').children().length <= 10)
					{
						if($('a[data-title="选择领域"]').is(':visible') && $('#fav').children().length <= 1)
							$('a[data-title="选择领域"]').click();
						  else
						  	$('.tab-content .active .fildLoad').click();
						}  
					},1000);

			});
            
			$(document).ready(function () {
                var header = new Headroom(document.querySelector(".navbar"), {
                    tolerance: 0,
                    offset: 0,
                    classes: {
                        initial: "animated",
                        pinned: "slideDown",
                        unpinned: "slideUp"
                    }
                });
                header.init();

                $(document).on('mouseover','.card',function () {
                    $(this).find('.close').toggleClass("hidden");
                });
                $(document).on('mouseout','.card',function () {
                    $(this).find('.close').toggleClass("hidden");
                });
                $(document).on('click','[data-dismiss="fuck"]',function () {
                    $(this).closest('.card').fadeOut(1000);
                });
               // var messcont = $("#myTabContent").find(".mess-close").size();
               // $(".mess-nord").text(messcont);


              
            });
			
	  $("select").selectpicker({ style: 'btn-block btn-default', menuStyle: 'dropdown-inverse' });
	  $('.hall').addClass('active');
	  $('home').removeClass('active');
        });
    </script>
    
</body>
</html>